AccountForm::$entityQuery

The entity query factory service. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/user/src/AccountForm.php, line 35 Class AccountForm Form controller for the user account forms. Namespace Drupal\user Code protected $entityQuery;

AccountForm

Form controller for the user account forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\user\AccountForm File core/modules/user/src/Acco

AccessResultReasonInterface::setReason

public AccessResultReasonInterface::setReason($reason) Sets the reason for this access result. Parameters $reason string|null: The reason of this access result or NULL if no reason is provided. Return value \Drupal\Core\Access\AccessResultInterface The access result instance. File core/lib/Drupal/Core/Access/AccessResultReasonInterface.php, line 34 Class AccessResultReasonInterface Interface for access result value objects with stored reason for developers. Namespace Drupal\Core\Acces

AccessResultReasonInterface::getReason

public AccessResultReasonInterface::getReason() Gets the reason for this access result. Return value string|null The reason of this access result or NULL if no reason is provided. File core/lib/Drupal/Core/Access/AccessResultReasonInterface.php, line 23 Class AccessResultReasonInterface Interface for access result value objects with stored reason for developers. Namespace Drupal\Core\Access Code public function getReason();

AccessResultReasonInterface

Interface for access result value objects with stored reason for developers. For example, a developer can specify the reason for forbidden access: new AccessResultForbidden('You are not authorized to hack core'); Hierarchy interface \Drupal\Core\Access\AccessResultInterfaceinterface \Drupal\Core\Access\AccessResultReasonInterface See also \Drupal\Core\Access\AccessResultInterface File core/lib/Drupal/Core/Access/AccessResultReasonInterface.php, line 15 Namespace Drupal\Core\Access M

AccessResultNeutral::isNeutral

public AccessResultNeutral::isNeutral() Overrides AccessResult::isNeutral See also \Drupal\Core\Access\AccessResultNeutral File core/lib/Drupal/Core/Access/AccessResultNeutral.php, line 13 Class AccessResultNeutral Value object indicating a neutral access result, with cacheability metadata. Namespace Drupal\Core\Access Code public function isNeutral() { return TRUE; }

AccessResultNeutral

Value object indicating a neutral access result, with cacheability metadata. Hierarchy class \Drupal\Core\Access\AccessResult implements AccessResultInterface, RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTraitclass \Drupal\Core\Access\AccessResultNeutral File core/lib/Drupal/Core/Access/AccessResultNeutral.php, line 8 Namespace Drupal\Core\Access Members Name Modifiers Type Description AccessResult::allowed public static function Creates an Ac

AccessResultInterface::orIf

public AccessResultInterface::orIf(AccessResultInterface $other) Combine this access result with another using OR. When OR-ing two access results, the result is: isForbidden() in either ⇒ isForbidden() otherwise if isAllowed() in either ⇒ isAllowed() otherwise both must be isNeutral() ⇒ isNeutral() Truth table: |A N F --+----- A |A A F N |A N F F |F F F Parameters \Drupal\Core\Access\AccessResultInterface $other: The other access result to OR this one with. Return value static File core/

AccessResultInterface::isNeutral

public AccessResultInterface::isNeutral() Checks whether this access result indicates access is not yet determined. Return value bool When TRUE then isAllowed() and isForbidden() are FALSE. File core/lib/Drupal/Core/Access/AccessResultInterface.php, line 48 Class AccessResultInterface Interface for access result value objects. Namespace Drupal\Core\Access Code public function isNeutral();

AccessResultInterface::isForbidden

public AccessResultInterface::isForbidden() Checks whether this access result indicates access is explicitly forbidden. This is a kill switch — both orIf() and andIf() will result in isForbidden() if either results are isForbidden(). Return value bool When TRUE then isAllowed() and isNeutral() are FALSE. File core/lib/Drupal/Core/Access/AccessResultInterface.php, line 40 Class AccessResultInterface Interface for access result value objects. Namespace Drupal\Core\Access Code public fun