BaseFieldDefinition::getDefaultValueCallback

public BaseFieldDefinition::getDefaultValueCallback() Returns the default value callback for the field. This method retrieves the raw property assigned to the field definition. When computing the runtime default value for a field in a given entity, ::getDefaultValue() should be used instead. Return value string|null The default value callback for the field. Overrides FieldDefinitionInterface::getDefaultValueCallback See also FieldDefinitionInterface::getDefaultValue() FieldDefinitionInterface

SqlContentEntityStorageSchema::addSharedTableFieldForeignKey

protected SqlContentEntityStorageSchema::addSharedTableFieldForeignKey(FieldStorageDefinitionInterface $storage_definition, &$schema, $foreign_table, $foreign_column) Adds a foreign key for the specified field to the given schema definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field to which to add a foreign key. array $schema: A reference to the schema array to be updated. string $foreign_table: The foreign table

EntityManager::getViewModes

public EntityManager::getViewModes($entity_type_id) Overrides EntityDisplayRepositoryInterface::getViewModes Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 286 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function getViewModes($entity_type_id) { return $this->container->get('entity_display.repository')->getViewModes

ExecutionContext::markObjectAsInitialized

public ExecutionContext::markObjectAsInitialized($cache_key) Marks that an object was initialized. @internal Used by the validator engine. Should not be called by user code. Parameters string $cacheKey The hash of the object: Overrides ExecutionContextInterface::markObjectAsInitialized See also ObjectInitializerInterface File core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php, line 298 Class ExecutionContext Defines an execution context class. Namespace Drupal\Core\TypedDa

SelectExtender::havingIsNull

public SelectExtender::havingIsNull($field) Sets a condition in the HAVING clause that the specified field be NULL. Parameters $field: The name of the field to check. Return value $this Overrides SelectInterface::havingIsNull File core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 184 Class SelectExtender The base extender class for Select queries. Namespace Drupal\Core\Database\Query Code public function havingIsNull($field) { $this->query->havingIsNull($field);

FileTranslation::getTranslationFilesPattern

protected FileTranslation::getTranslationFilesPattern($langcode = NULL) Provides translation file name pattern. Parameters string $langcode: (optional) The language code corresponding to the language for which we want to find translation files. Return value string String file pattern. File core/lib/Drupal/Core/StringTranslation/Translator/FileTranslation.php, line 87 Class FileTranslation File based string translation. Namespace Drupal\Core\StringTranslation\Translator Code protected

ShowButtonsCommand::$changed

Whether the view has been changed. Type: bool File core/modules/views/src/Ajax/ShowButtonsCommand.php, line 20 Class ShowButtonsCommand Provides an AJAX command for showing the save and cancel buttons. Namespace Drupal\views\Ajax Code protected $changed;

SessionConfiguration::__construct

public SessionConfiguration::__construct($options = []) Constructs a new session configuration instance. Parameters array $options: An associative array of session ini settings. See also \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::__construct() http://php.net/manual/session.configuration.php File core/lib/Drupal/Core/Session/SessionConfiguration.php, line 26 Class SessionConfiguration Defines the default session configuration generator. Namespace Drupal\Cor

AuthenticationManager::appliesToRoutedRequest

public AuthenticationManager::appliesToRoutedRequest(Request $request, $authenticated) Checks whether the authentication method is allowed on a given route. While authentication itself is run before routing, this method is called after routing, hence RouteMatch is available and can be used to inspect route options. Parameters \Symfony\Component\HttpFoundation\Request $request: The request. bool $authenticated: Whether or not the request is authenticated. Return value bool TRUE if an authentic

RouteProvider::getCandidateOutlines

protected RouteProvider::getCandidateOutlines(array $parts) Returns an array of path pattern outlines that could match the path parts. Parameters array $parts: The parts of the path for which we want candidates. Return value array An array of outlines that could match the specified path parts. File core/lib/Drupal/Core/Routing/RouteProvider.php, line 250 Class RouteProvider A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code protected function