CommentForm::create

public static CommentForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service cont

RestResourceConfigInterface::getMethods

public RestResourceConfigInterface::getMethods() Retrieves a list of supported HTTP methods. Return value string[] A list of supported HTTP methods. File core/modules/rest/src/RestResourceConfigInterface.php, line 37 Class RestResourceConfigInterface Defines a configuration entity to store enabled REST resources. Namespace Drupal\rest Code public function getMethods();

RestResourceConfig

Defines a RestResourceConfig configuration entity class. Plugin annotation @ConfigEntityType( id = "rest_resource_config", label = @Translation("REST resource configuration"), config_prefix = "resource", admin_permission = "administer rest resources", label_callback = "getLabelFromPlugin", entity_keys = { "id" = "id" }, config_export = { "id", "plugin_id", "granularity", "configuration" } ) Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterf

EntityDisplayBase::getFieldDefinitions

protected EntityDisplayBase::getFieldDefinitions() Gets the definitions of the fields that are candidate for display. File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 385 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code protected function getFieldDefinitions() { if (!isset($this->fieldDefinitions)) { $definitions = \Drupal::entityManager()->getFieldDefinitions($this->targetEntityType, $t

StatementEmpty::getQueryString

public StatementEmpty::getQueryString() Gets the query string of this statement. Return value The query string, in its form with placeholders. Overrides StatementInterface::getQueryString File core/lib/Drupal/Core/Database/StatementEmpty.php, line 36 Class StatementEmpty Empty implementation of a database statement. Namespace Drupal\Core\Database Code public function getQueryString() { return ''; }

Connection::UNSUPPORTED_CHARSET

Error code for "Can't initialize character set" error. File core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 32 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code const UNSUPPORTED_CHARSET = 2019;

LOCALE_TRANSLATION_STATUS_TTL

The number of seconds that the translations status entry should be considered. File core/modules/locale/locale.module, line 107 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_STATUS_TTL = 600;

ContentEntityStorageBase::__construct

public ContentEntityStorageBase::__construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, CacheBackendInterface $cache) Constructs a ContentEntityStorageBase object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend to be used. Overrides EntityStorageBase::__construct File core/

EntityRouteProviderSubscriber::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/lib/Drupal/Core/EventSubscriber/EntityRouteProviderSubscriber.php, line 21 Class EntityRouteProviderSubscriber Ensures that routes can be provided by entity types. Namespace Drupal\Core\EventSubscriber Code protected $entityManager;

ImageStyleEditForm::updateEffectWeights

protected ImageStyleEditForm::updateEffectWeights(array $effects) Updates image effect weights. Parameters array $effects: Associative array with effects having effect uuid as keys and array with effect data as values. File core/modules/image/src/Form/ImageStyleEditForm.php, line 274 Class ImageStyleEditForm Controller for image style edit form. Namespace Drupal\image\Form Code protected function updateEffectWeights(array $effects) { foreach ($effects as $uuid => $effect_data) {