MoreLink

Provides a link render element for a "more" link, like those used in blocks. Properties: #title: The text of the link to generate (defaults to 'More'). See \Drupal\Core\Render\Element\Link for additional properties. Usage Example: $build['more'] = [ '#type' => 'more_link', '#url' => Url::fromRoute('examples.more_examples') ] Plugin annotation @RenderElement("more_link") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionI

ContextualLinkManager::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Menu/ContextualLinkManager.php, line 73 Class ContextualLinkManager Defines a contextual link plugin manager to deal with contextual links. Namespace Drupal\Core\Menu Code protected $requestStack;

Query::__construct

public Query::__construct(EntityTypeInterface $entity_type, $conjunction, array $namespaces, KeyValueFactoryInterface $key_value_factory) Constructs a new Query. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type. string $conjunction: AND: all of the conditions on the query need to match. OR: at least one of the conditions on the query need to match. array $namespaces: List of potential namespaces of the classes belonging to this query. \Drupal\Core\KeyValueSt

Delete

SQLite implementation of \Drupal\Core\Database\Query\Delete. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Delete implements ConditionInterface uses QueryConditionTraitclass \Drupal\Core\Database\Driver\sqlite\Delete File core/lib/Drupal/Core/Database/Driver/sqlite/Delete.php, line 10 Namespace Drupal\Core\Database\Driver\sqlite Members Name Modifiers Type Description Delete::$table protected property

EntityDisplayFormBase::submitForm

public EntityDisplayFormBase::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden un

Unicode::STATUS_ERROR

Indicates an error during check for PHP unicode support. File core/lib/Drupal/Component/Utility/Unicode.php, line 88 Class Unicode Provides Unicode-related conversions and operations. Namespace Drupal\Component\Utility Code const STATUS_ERROR = -1;

DbLogController

Returns responses for dblog routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\dblog\Controller\DbLogController File core/modules/dblog/src/Controller/DbLogController.php, line 21 Namespace Drupal\dblog\Controller Members Name Modifiers Type Description ControllerBase::$configFactory protected prop

ViewEditForm::submitDisplayDuplicate

public ViewEditForm::submitDisplayDuplicate($form, FormStateInterface $form_state) Submit handler to duplicate a display for a view. File core/modules/views_ui/src/ViewEditForm.php, line 800 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function submitDisplayDuplicate($form, FormStateInterface $form_state) { $view = $this->entity; $display_id = $this->displayID; // Create the new display. $displays = $view->get('disp

JsCollectionOptimizer::optimize

public JsCollectionOptimizer::optimize(array $js_assets) The cache file name is retrieved on a page load via a lookup variable that contains an associative array. The array key is the hash of the names in $files while the value is the cache file name. The cache file is generated in two cases. First, if there is no file name value for the key, which will happen if a new file name has been added to $files or after the lookup variable is emptied to force a rebuild of the cache. Second, the cache

_color_save_stylesheet

_color_save_stylesheet($file, $style, &$paths) Saves the rewritten stylesheet to disk. File core/modules/color/color.module, line 582 Allows users to change the color scheme of themes. Code function _color_save_stylesheet($file, $style, &$paths) { $filepath = file_unmanaged_save_data($style, $file, FILE_EXISTS_REPLACE); $paths['files'][] = $filepath; // Set standard file permissions for webserver-generated files. drupal_chmod($file); }