setLabel($label); $this->setPlaceholder($placeholder); $this->setDisplay($display); $this->setGroup($group); $this->value = $value; } /** * @param ContextInterface $context * @param ContentPlaceholder $placeholder * * @return mixed */ public function getValue(ContextInterface $context, ContentPlaceholder $placeholder) { $method = $this->value; if (is_object($method) && ($method instanceof Closure)) { return call_user_func($method, $context, $placeholder); } return $this->value; } }