ContentEntityBase::getTranslatableFields

public ContentEntityBase::getTranslatableFields($include_computed = TRUE) Gets an array of field item lists for translatable fields. Parameters bool $include_computed: If set to TRUE, computed fields are included. Defaults to TRUE. Return value \Drupal\Core\Field\FieldItemListInterface[] An array of field item lists implementing, keyed by field name. Overrides FieldableEntityInterface::getTranslatableFields File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 532 Class ContentEnti

ExtensionDiscovery::filterByProfileDirectories

protected ExtensionDiscovery::filterByProfileDirectories(array $all_files) Filters out extensions not belonging to the scanned installation profiles. Parameters \Drupal\Core\Extension\Extension[] $all_files.: The list of all extensions. Return value \Drupal\Core\Extension\Extension[] The filtered list of extensions. File core/lib/Drupal/Core/Extension/ExtensionDiscovery.php, line 290 Class ExtensionDiscovery Discovers available extensions in the filesystem. Namespace Drupal\Core\Exten

LocaleLookup::$context

The msgctxt context. Type: string File core/modules/locale/src/LocaleLookup.php, line 29 Class LocaleLookup A cache collector to allow for dynamic building of the locale cache. Namespace Drupal\locale Code protected $context;

image-style-preview.html.twig

Default theme implementation to display a preview of an image style. Available variables: style_id: The ID of the image style. style_name: The name of the image style. cache_bypass: A timestamp token used to avoid browser caching of images. original: An associative array containing: url: The URL of the original image. width: The width in pixels of the original image. height: The height in pixels of the original image. rendered: The render array for the original image. derivative: An a

LanguageNegotiationMethodBase::setConfig

public LanguageNegotiationMethodBase::setConfig(ConfigFactoryInterface $config) Injects the configuration factory. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory. Overrides LanguageNegotiationMethodInterface::setConfig File core/modules/language/src/LanguageNegotiationMethodBase.php, line 45 Class LanguageNegotiationMethodBase Base class for language negotiation methods. Namespace Drupal\language Code public function setConfig(ConfigFa

YamlPecl::encode

public static YamlPecl::encode($data) Encodes data into the serialization format. Parameters mixed $data: The data to encode. Return value string The encoded data. Overrides SerializationInterface::encode File core/lib/Drupal/Component/Serialization/YamlPecl.php, line 15 Class YamlPecl Provides default serialization for YAML using the PECL extension. Namespace Drupal\Component\Serialization Code public static function encode($data) { static $init; if (!isset($init)) { ini_set

QueryBase::tableSort

public QueryBase::tableSort(&$headers) Enables sortable tables for this query. Parameters $headers: An array of headers of the same structure as described in template_preprocess_table(). Use a 'specifier' in place of a 'field' to specify what to sort on. This can be an entity or a field as described in condition(). Return value \Drupal\Core\Entity\Query\QueryInterface The called object. Overrides QueryInterface::tableSort File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 306 C

field.module

Attach custom data fields to Drupal entities. File core/modules/field/field.module Functions Name Description field_config_import_steps_alter Implements hook_config_import_steps_alter(). field_cron Implements hook_cron(). field_entity_bundle_delete Implements hook_entity_bundle_delete(). field_entity_bundle_field_info Implements hook_entity_bundle_field_info(). field_entity_field_storage_info Implements hook_entity_field_storage_info(). field_field_config_presave I

BlockContent::getRevisionUserId

public BlockContent::getRevisionUserId() Gets the entity revision author ID. Return value int The user ID. Overrides RevisionLogInterface::getRevisionUserId File core/modules/block_content/src/Entity/BlockContent.php, line 266 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function getRevisionUserId() { return $this->get('revision_user')->entity->id(); }

EntityRouteProviderInterface::getRoutes

public EntityRouteProviderInterface::getRoutes(EntityTypeInterface $entity_type) Provides routes for entities. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type Return value \Symfony\Component\Routing\RouteCollection|\Symfony\Component\Routing\Route[] Returns a route collection or an array of routes keyed by name, like route_callbacks inside 'routing.yml' files. File core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php, line 22 Class EntityRo