LanguageAddForm::validatePredefined

public LanguageAddForm::validatePredefined($form, FormStateInterface $form_state) Element specific validator for the Add language button. File core/modules/language/src/Form/LanguageAddForm.php, line 128 Class LanguageAddForm Controller for language addition forms. Namespace Drupal\language\Form Code public function validatePredefined($form, FormStateInterface $form_state) { $langcode = $form_state->getValue('predefined_langcode'); if ($langcode == 'custom') { $form_state-&g

ShortcutInterface::getWeight

public ShortcutInterface::getWeight() Returns the weight among shortcuts with the same depth. Return value int The shortcut weight. File core/modules/shortcut/src/ShortcutInterface.php, line 37 Class ShortcutInterface Provides an interface defining a shortcut entity. Namespace Drupal\shortcut Code public function getWeight();

CheckProvider::loadDynamicRequirementMap

protected CheckProvider::loadDynamicRequirementMap() Compiles a mapping of requirement keys to access checker service IDs. File core/lib/Drupal/Core/Access/CheckProvider.php, line 148 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code protected function loadDynamicRequirementMap() { if (isset($this->dynamicRequirementMap)) { return; } // Set them here, so we can use the isset() check above. $this->dynamicRequirementMap = a

RenderCache::maxAgeToExpire

protected RenderCache::maxAgeToExpire($max_age) Maps a #cache[max-age] value to an "expire" value for the Cache API. Parameters int $max_age: A #cache[max-age] value. Return value int A corresponding "expire" value. See also \Drupal\Core\Cache\CacheBackendInterface::set() File core/lib/Drupal/Core/Render/RenderCache.php, line 283 Class RenderCache Wraps the caching logic for the render caching system. Namespace Drupal\Core\Render Code protected function maxAgeToExpire($max_age) {

Connection::SQLSTATE_SYNTAX_ERROR

SQLSTATE error code for "Syntax error or access rule violation". File core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 42 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code const SQLSTATE_SYNTAX_ERROR = 42000;

ContainerInjectionInterface

Defines a common interface for dependency container injection. This interface gives classes who need services a factory method for instantiation rather than defining a new service. Hierarchy interface \Drupal\Core\DependencyInjection\ContainerInjectionInterface File core/lib/Drupal/Core/DependencyInjection/ContainerInjectionInterface.php, line 13 Namespace Drupal\Core\DependencyInjection Members Name Modifiers Type Description ContainerInjectionInterface::create public stati

CheckProviderInterface::setChecks

public CheckProviderInterface::setChecks(RouteCollection $routes) For each route, saves a list of applicable access checks to the route. Parameters \Symfony\Component\Routing\RouteCollection $routes: A collection of routes to apply checks to. File core/lib/Drupal/Core/Access/CheckProviderInterface.php, line 25 Class CheckProviderInterface Provides the available access checkers by service IDs. Namespace Drupal\Core\Access Code public function setChecks(RouteCollection $routes);

RouteProviderLazyBuilder::__construct

public RouteProviderLazyBuilder::__construct(RouteProviderInterface $route_provider, RouteBuilderInterface $route_builder) RouteProviderLazyBuilder constructor. Parameters \Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider service. \Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route building service. File core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 42 Class RouteProviderLazyBuilder A Route Provider front-end for all Drupal-

RouteProviderLazyBuilder::getAllRoutes

public RouteProviderLazyBuilder::getAllRoutes() Returns all the routes on the system. Usage of this method is discouraged for performance reasons. If possible, use RouteProviderInterface::getRoutesByNames() or RouteProviderInterface::getRoutesByPattern() instead. Return value \Symfony\Component\Routing\Route[] An iterator of routes keyed by route name. Overrides RouteProviderInterface::getAllRoutes File core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 99 Class RouteProviderL

NodeType::isNewRevision

public NodeType::isNewRevision() Gets whether a new revision should be created by default. Return value bool TRUE if a new revision should be created by default. Overrides NodeTypeInterface::isNewRevision File core/modules/node/src/Entity/NodeType.php, line 120 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code public function isNewRevision() { return $this->new_revision; }