AccountForm::alterPreferredLangcodeDescription

public AccountForm::alterPreferredLangcodeDescription(array $element) Alters the preferred language widget description. Parameters array $element: The preferred language form element. Return value array The preferred language form element. File core/modules/user/src/AccountForm.php, line 282 Class AccountForm Form controller for the user account forms. Namespace Drupal\user Code public function alterPreferredLangcodeDescription(array $element) { // Only add to the description if th

AccountForm::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/user/src/AccountForm.php, line 28 Class AccountForm Form controller for the user account forms. Namespace Drupal\user Code protected $languageManager;

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

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

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();

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

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; }

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::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::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