UnroutedUrlAssembler::addOptionDefaults

protected UnroutedUrlAssembler::addOptionDefaults(array &$options) Merges in default defaults Parameters array $options: The options to merge in the defaults. File core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php, line 165 Class UnroutedUrlAssembler Provides a way to build external or non Drupal local domain URLs. Namespace Drupal\Core\Utility Code protected function addOptionDefaults(array &$options) { $request = $this->requestStack->getCurrentRequest(); $curre

CsrfTokenGenerator::validate

public CsrfTokenGenerator::validate($token, $value = '') Validates a token based on $value, the user session, and the private key. Parameters string $token: The token to be validated. string $value: (optional) An additional value to base the token on. Return value bool TRUE for a valid token, FALSE for an invalid token. File core/lib/Drupal/Core/Access/CsrfTokenGenerator.php, line 84 Class CsrfTokenGenerator Generates and validates CSRF tokens. Namespace Drupal\Core\Access Code publi

BootstrapConfigStorageFactory::getDatabaseStorage

public static BootstrapConfigStorageFactory::getDatabaseStorage() Returns a Database configuration storage implementation. Return value \Drupal\Core\Config\DatabaseStorage File core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php, line 39 Class BootstrapConfigStorageFactory Defines a factory for retrieving the config storage used pre-kernel. Namespace Drupal\Core\Config Code public static function getDatabaseStorage() { return new DatabaseStorage(Database::getConnection(),

EntityDisplayModeController::viewModeTypeSelection

public EntityDisplayModeController::viewModeTypeSelection() Provides a list of eligible entity types for adding view modes. Return value array A list of entity types to add a view mode for. File core/modules/field_ui/src/Controller/EntityDisplayModeController.php, line 19 Class EntityDisplayModeController Provides methods for entity display mode routes. Namespace Drupal\field_ui\Controller Code public function viewModeTypeSelection() { $entity_types = array(); foreach ($this->e

BootstrapConfigStorageFactory::getFileStorage

public static BootstrapConfigStorageFactory::getFileStorage() Returns a File-based configuration storage implementation. If there is no active configuration directory calling this method will result in an error. Return value \Drupal\Core\Config\FileStorage Throws \Exception Deprecated in Drupal 8.0.x and will be removed before 9.0.0. Drupal core no longer creates an active directory. File core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php, line 56 Class BootstrapConfigStorag

InaccessibleMenuLink::getCacheTags

public InaccessibleMenuLink::getCacheTags() The cache tags associated with this object. When this object is modified, these cache tags will be invalidated. Return value string[] A set of cache tags. Overrides MenuLinkBase::getCacheTags File core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php, line 61 Class InaccessibleMenuLink A menu link plugin for wrapping another menu link, in sensitive situations. Namespace Drupal\Core\Menu Code public function getCacheTags() { return $this->w

TranslationString::isNew

public TranslationString::isNew() Checks whether the object is not saved to storage yet. Return value bool TRUE if the object exists in the storage, FALSE otherwise. Overrides StringInterface::isNew File core/modules/locale/src/TranslationString.php, line 101 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public function isNew() { return $this->isNew; }

NoCorrespondingEntityClassException::__construct

public NoCorrespondingEntityClassException::__construct($class) Constructs an NoCorrespondingEntityClassException. Parameters string $class: The class which does not correspond to an entity type. File core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php, line 20 Class NoCorrespondingEntityClassException Exception thrown if an entity type is not represented by a class. Namespace Drupal\Core\Entity\Exception Code public function __construct($class) { $message

ConfigTranslationEditForm::getFormId

public ConfigTranslationEditForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/config_translation/src/Form/ConfigTranslationEditForm.php, line 16 Class ConfigTranslationEditForm Defines a form for editing configuration translations. Namespace Drupal\config_translation\Form Code public function getFormId() { return 'config_translation_edit_form'; }

FieldConfigBase::setConstraints

public FieldConfigBase::setConstraints(array $constraints) Sets the array of validation constraints for the FieldItemList. NOTE: This will overwrite any previously set constraints. In most cases FieldConfigInterface::addConstraint() should be used instead. Note that constraints added via this method are not stored in configuration and as such need to be added at runtime using hook_entity_bundle_field_info_alter(). Parameters array $constraints: The array of constraints. See \Drupal\Core\TypedD