DbUpdateController::info

protected DbUpdateController::info(Request $request) Returns the info database update page. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. Return value array A render array. File core/modules/system/src/Controller/DbUpdateController.php, line 208 Class DbUpdateController Controller routines for database update routes. Namespace Drupal\system\Controller Code protected function info(Request $request) { // Change query-strings on css/js files to en

Select::__toString

public Select::__toString() Implements PHP magic __toString method to convert the query to a string. The toString operation is how we compile a query object to a prepared statement. Return value string A prepared statement query string for this object. Overrides Query::__toString File core/lib/Drupal/Core/Database/Query/Select.php, line 778 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code public function __toString() { // For convenience, w

Node::postDelete

public static Node::postDelete(EntityStorageInterface $storage, array $nodes) 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/modules/node/src/Entity/Node.php, line 165 Class Node Defines the node entity cla

ImageStyleInterface::getDerivativeExtension

public ImageStyleInterface::getDerivativeExtension($extension) Determines the extension of the derivative without generating it. Parameters string $extension: The file extension of the original image. Return value string The extension the derivative image will have, given the extension of the original. File core/modules/image/src/ImageStyleInterface.php, line 155 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public functio

ContextualLinksPlaceholder

Provides a contextual_links_placeholder element. Plugin annotation @RenderElement("contextual_links_placeholder") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\contextual\Element\ContextualLinksPlaceholder File core/modules/contextual/s

ViewUI::renderPreview

public ViewUI::renderPreview($display_id, $args = array()) File core/modules/views_ui/src/ViewUI.php, line 515 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function renderPreview($display_id, $args = array()) { // Save the current path so it can be restored before returning from this function. $request_stack = \Drupal::requestStack(); $current_request = $request_stack->getCurrentRequest(); $executable = $this->getExecutable();

EntityDisplayModeListBuilder::buildRow

public EntityDisplayModeListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/field_ui/src/EntityDisplayModeListBuilder.php, line 65 Class EntityDisplayModeListBuilder Def

Schema::addField

public Schema::addField($table, $field, $specification, $keys_new = array()) Add a new field to a table. Parameters $table: Name of the table to be altered. $field: Name of the field to be added. $spec: The field specification array, as taken from a schema definition. The specification may also contain the key 'initial', the newly created field will be set to the value of the key in all rows. This is most useful for creating NOT NULL columns with no default value in existing tables. Alternativ

ContentTranslationMetadataWrapper::getAuthor

public ContentTranslationMetadataWrapper::getAuthor() Returns the translation author. Return value \Drupal\user\UserInterface The user entity for the translation author. Overrides ContentTranslationMetadataWrapperInterface::getAuthor File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 73 Class ContentTranslationMetadataWrapper Base class for content translation metadata wrappers. Namespace Drupal\content_translation Code public function getAuthor() {

template_preprocess_links

template_preprocess_links(&$variables) Prepares variables for links templates. Default template: links.html.twig. Unfortunately links templates duplicate the "active" class handling of l() and LinkGenerator::generate() because it needs to be able to set the "active" class not on the links themselves (<a> tags), but on the list items (<li> tags) that contain the links. This is necessary for CSS to be able to style list items differently when the link is active, since CSS does not