RedirectCommand::__construct

public RedirectCommand::__construct($url) Constructs an RedirectCommand object. Parameters string $url: The URL that will be loaded into window.location. This should be a full URL. File core/lib/Drupal/Core/Ajax/RedirectCommand.php, line 26 Class RedirectCommand Defines an AJAX command to set the window.location, loading that URL. Namespace Drupal\Core\Ajax Code public function __construct($url) { $this->url = $url; }

RedirectCommand::render

public RedirectCommand::render() Implements \Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/RedirectCommand.php, line 33 Class RedirectCommand Defines an AJAX command to set the window.location, loading that URL. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'redirect', 'url' => $this->url, ); }

RedirectCommand::$url

The URL that will be loaded into window.location. Type: string File core/lib/Drupal/Core/Ajax/RedirectCommand.php, line 17 Class RedirectCommand Defines an AJAX command to set the window.location, loading that URL. Namespace Drupal\Core\Ajax Code protected $url;

RedirectCommand

Defines an AJAX command to set the window.location, loading that URL. Hierarchy class \Drupal\Core\Ajax\RedirectCommand implements CommandInterface Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/RedirectCommand.php, line 10 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description RedirectCommand::$url protected property The URL that will be loaded into window.location. RedirectCommand::render public function Imp

RecursiveValidator::__construct

public RecursiveValidator::__construct(ExecutionContextFactoryInterface $context_factory, ConstraintValidatorFactoryInterface $validator_factory, TypedDataManagerInterface $typed_data_manager) Creates a new validator. Parameters \Symfony\Component\Validator\Context\ExecutionContextFactoryInterface $context_factory: The factory for creating new contexts. \Symfony\Component\Validator\ConstraintValidatorFactoryInterface $validator_factory: The constraint validator factory. \Drupal\Core\TypedData\

RecursiveValidator::validatePropertyValue

public RecursiveValidator::validatePropertyValue($objectOrClass, $propertyName, $value, $groups = NULL) Validates a value against the constraints specified for an object's property. Parameters object|string $objectOrClass The object or its class name: string $propertyName The name of the property: mixed $value The value to validate against the: property's constraints array|null $groups The validation groups to validate. If: none is given, "Default" is assumed Return value ConstraintViolationL

RecursiveValidator::validateProperty

public RecursiveValidator::validateProperty($object, $propertyName, $groups = NULL) Validates a property of an object against the constraints specified for this property. Parameters object $object The object: string $propertyName The name of the validated property: array|null $groups The validation groups to validate. If: none is given, "Default" is assumed Return value ConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded Overrides Valid

RecursiveValidator::validate

public RecursiveValidator::validate($value, $constraints = NULL, $groups = NULL) Validates a value against a constraint or a list of constraints. If no constraint is passed, the constraint {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. Parameters mixed $value The value to validate: Constraint|Constraint[] $constraints The constraint(s) to validate: against array|null $groups The validation groups to: validate. If none is given, "Default" is assumed Return value ConstraintV

RecursiveValidator::startContext

public RecursiveValidator::startContext($root = NULL) Starts a new validation context and returns a validator for that context. The returned validator collects all violations generated within its context. You can access these violations with the {@link ContextualValidatorInterface::getViolations()} method. Return value ContextualValidatorInterface The validator for the new context Overrides ValidatorInterface::startContext File core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php,

RecursiveValidator::inContext

public RecursiveValidator::inContext(ExecutionContextInterface $context) Returns a validator in the given execution context. The returned validator adds all generated violations to the given context. Parameters ExecutionContextInterface $context The execution context: Return value ContextualValidatorInterface The validator for that context Overrides ValidatorInterface::inContext File core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php, line 61 Class RecursiveValidator Define