hook_node_access_records

hook_node_access_records(\Drupal\node\NodeInterface $node) Set permissions for a node to be written to the database. When a node is saved, a module implementing hook_node_access_records() will be asked if it is interested in the access permissions for a node. If it is interested, it must respond with an array of permissions arrays for that node. Node access grants apply regardless of the published or unpublished status of the node. Implementations must make sure not to grant access to unpublish

ThemeInstaller::uninstall

public ThemeInstaller::uninstall(array $theme_list) Uninstalls a given list of themes. Uninstalling a theme removes all related configuration (like blocks) and invokes the 'themes_uninstalled' hook. Parameters array $theme_list: The themes to uninstall. Throws \InvalidArgumentException Thrown when you uninstall an not installed theme. Overrides ThemeInstallerInterface::uninstall See also hook_themes_uninstalled() File core/lib/Drupal/Core/Extension/ThemeInstaller.php, line 214 Class Them

ViewsEntitySchemaSubscriber::BASE_TABLE_RENAME

Indicates that a base table got renamed. File core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php, line 23 Class ViewsEntitySchemaSubscriber Reacts to changes on entity types to update all views entities. Namespace Drupal\views\EventSubscriber Code const BASE_TABLE_RENAME = 0;

LocaleLookup::resolveCacheMiss

protected LocaleLookup::resolveCacheMiss($offset) Resolves a cache miss. When an offset is not found in the object, this is treated as a cache miss. This method allows classes using this implementation to look up the actual value and allow it to be cached. Parameters string $key: The offset that was requested. Return value mixed The value of the offset, or NULL if no value was found. Overrides CacheCollector::resolveCacheMiss File core/modules/locale/src/LocaleLookup.php, line 134 Class L

EntityDisplayRepositoryInterface::getViewModeOptionsByBundle

public EntityDisplayRepositoryInterface::getViewModeOptionsByBundle($entity_type_id, $bundle) Returns an array of enabled view mode options by bundle. Parameters string $entity_type_id: The entity type whose view mode options should be returned. string $bundle: The name of the bundle. Return value array An array of view mode labels, keyed by the display mode ID. File core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php, line 81 Class EntityDisplayRepositoryInterface Provides

Schema::queryTableInformation

public Schema::queryTableInformation($table) Fetch the list of blobs and sequences used on a table. We introspect the database to collect the information required by insert and update queries. Parameters $table_name: The non-prefixed name of the table. Return value An object with two member variables: 'blob_fields' that lists all the blob fields in the table. 'sequences' that lists the sequences used in that table. File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 89 Class

ConfigInstaller::installOptionalConfig

public ConfigInstaller::installOptionalConfig(StorageInterface $storage = NULL, $dependency = []) Installs optional configuration. Optional configuration is only installed if: the configuration does not exist already. it's a configuration entity. its dependencies can be met. Parameters \Drupal\Core\Config\StorageInterface $storage: (optional) The configuration storage to search for optional configuration. If not provided, all enabled extension's optional configuration directories will be sea

ViewExecutable::$showAdminLinks

Should the admin links be shown on the rendered view. Type: bool File core/modules/views/src/ViewExecutable.php, line 415 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code protected $showAdminLinks;

RenderCache::set

public RenderCache::set(array &$elements, array $pre_bubbling_elements) Caches the rendered output of a renderable array. May be called by an implementation of \Drupal\Core\Render\RendererInterface while rendering, if the #cache property is set. Parameters array $elements: A renderable array. array $pre_bubbling_elements: A renderable array corresponding to the state (in particular, the cacheability metadata) of $elements prior to the beginning of its rendering process, and therefore befor

TypeLinkManagerInterface::getTypeUri

public TypeLinkManagerInterface::getTypeUri($entity_type, $bundle, $context = array()) Gets the URI that corresponds to a bundle. When using hypermedia formats, this URI can be used to indicate which bundle the data represents. Documentation about required and optional fields can also be provided at this URI. Parameters $entity_type: The bundle's entity type. $bundle: The bundle name. array $context: (optional) Optional serializer/normalizer context. Return value string The corresponding URI