PagerSelectExtender::limit

public PagerSelectExtender::limit($limit = 10) Specify the maximum number of elements per page for this query. The default if not specified is 10 items per page. Parameters int|false $limit: An integer specifying the number of elements per page. If passed a false value (FALSE, 0, NULL), the pager is disabled. File core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php, line 138 Class PagerSelectExtender Query extender for pager queries. Namespace Drupal\Core\Database\Query Code p

outside_in_block_view_alter

outside_in_block_view_alter(array &$build) Implements hook_block_view_alter(). File core/modules/outside_in/outside_in.module, line 51 Allows configuring blocks and other configuration from the site front-end. Code function outside_in_block_view_alter(array &$build) { // Force a new 'data-contextual-id' attribute on blocks when this module is // enabled so as not to reuse stale data cached client-side. // @todo Remove when https://www.drupal.org/node/2773591 is fixed. $build['

views_ui_truncate

views_ui_truncate($string, $length) Truncate strings to a set length and provide a '...' if they truncated. This is often used in the UI to ensure long strings fit. File core/modules/views_ui/views_ui.module, line 321 Provide structure for the administrative interface to Views. Code function views_ui_truncate($string, $length) { if (Unicode::strlen($string) > $length) { $string = Unicode::substr($string, 0, $length); $string .= '...'; } return $string; }

AliasStorage::ensureTableExists

protected AliasStorage::ensureTableExists() Check if the table exists and create it if not. File core/lib/Drupal/Core/Path/AliasStorage.php, line 371 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code protected function ensureTableExists() { try { $database_schema = $this->connection->schema(); if (!$database_schema->tableExists(static::TABLE)) { $schema_definition = $this->schemaDefinition(); $data

CacheTagsInvalidator

Passes cache tag events to classes that wish to respond to them. Hierarchy class \Drupal\Core\Cache\CacheTagsInvalidator implements CacheTagsInvalidatorInterface uses ContainerAwareTrait File core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 10 Namespace Drupal\Core\Cache Members Name Modifiers Type Description CacheTagsInvalidator::$invalidators protected property Holds an array of cache tags invalidators. CacheTagsInvalidator::addInvalidator public functi

RdfMappingInterface::getFieldMapping

public RdfMappingInterface::getFieldMapping($field_name) Gets the mapping config for a field. This function returns the field mapping as stored in config, which may contain CURIE arrays. If the mapping is needed for output in a serialization format, such as RDFa, then getPreparedFieldMapping() should be used instead. Parameters string $field_name: The name of the field. Return value array The field mapping config array, or an empty array if there is no mapping. File core/modules/rdf/src/RdfMa

TypeLinkManager::getTypes

protected TypeLinkManager::getTypes($context = array()) Get the array of type links. Parameters array $context: Context from the normalizer/serializer operation. Return value array An array of typed data ids (entity_type and bundle) keyed by corresponding type URI. File core/modules/rest/src/LinkManager/TypeLinkManager.php, line 99 Class TypeLinkManager Namespace Drupal\rest\LinkManager Code protected function getTypes($context = array()) { $cid = 'rest:links:types'; $cache = $t

BaseFieldOverride::postDelete

public static BaseFieldOverride::postDelete(EntityStorageInterface $storage, array $field_overrides) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::postDelete File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 198

image_file_move

image_file_move(File $file, File $source) Implements hook_file_move(). File core/modules/image/image.module, line 206 Exposes global functionality for creating image styles. Code function image_file_move(File $file, File $source) { // Delete any image derivatives at the original image path. image_path_flush($source->getFileUri()); }

ConfigImportForm::validateForm

public ConfigImportForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/config/src/Form/ConfigImportForm.php, line 75 Class ConfigImportForm Defines the configuration import form. Namespace Drupal\config\Form Code public function val