views-view-row-opml.html.twig

Default theme implementation to display an item in a views OPML feed. Available variables: attributes: Attributes for outline element. See also template_preprocess_views_view_row_opml() File core/modules/views/templates/views-view-row-opml.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

DrupalKernel::handle

public DrupalKernel::handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) Handles a Request to convert it to a Response. When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance. Parameters Request $request A Request instance: int $type The type of the request: (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) bool $catch Whether to catch exceptions or not: Return value Response A R

views-view-summary-unformatted.html.twig

Default theme implementation for unformatted summary links. Available variables: rows: The rows contained in this view. url: The URL to this row's content. count: The number of items this summary item represents. separator: A separator between each row. attributes: HTML attributes for a row. active: A flag indicating whether the row is active. options: Flags indicating how each row should be displayed. This contains: count: A flag indicating whether the row's 'count' should be displaye

ViewsExposedForm

Defines a Plugin annotation object for views exposed form plugins. Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\views\Annotation\ViewsPluginAnnotationBase implements AnnotationInterfaceclass \Drupal\views\Annotation\ViewsExposedForm See also \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase Related topics Annotations Annotations for class discovery and metadata

ControllerResolverInterface::getControllerFromDefinition

public ControllerResolverInterface::getControllerFromDefinition($controller) Returns the Controller instance with a given controller route definition. As several resolvers can exist for a single application, a resolver must return false when it is not able to determine the controller. Parameters mixed $controller: The controller attribute like in $request->attributes->get('_controller') Return value mixed|bool A PHP callable representing the Controller, or false if this resolver is not

file_directory_os_temp

file_directory_os_temp() Discovers a writable system-appropriate temporary directory. Return value mixed A string containing the path to the temporary directory. Deprecated in Drupal 8.3.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Component\FileSystem\FileSystem::getOsTemporaryDirectory(). Related topics File interface Common file handling functions. File core/includes/file.inc, line 1222 API for handling file uploads and server file management. Code function file_directory_

hook_file_validate

hook_file_validate(Drupal\file\FileInterface $file) Check that files meet a given criteria. This hook lets modules perform additional validation on files. They're able to report a failure by returning one or more error messages. Parameters \Drupal\file\FileInterface $file: The file entity being validated. Return value array An array of error messages. If there are no problems with the file return an empty array. See also file_validate() Related topics Hooks Define functions that alter the be

AliasWhitelist::get

public AliasWhitelist::get($offset) Gets value from the cache. Parameters string $key: Key that identifies the data. Return value mixed The corresponding cache data. Overrides CacheCollector::get File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 83 Class AliasWhitelist Extends CacheCollector to build the path alias whitelist over time. Namespace Drupal\Core\Path Code public function get($offset) { $this->lazyLoadCache(); // this may be called with paths that are not repr

hook_entity_view_mode_alter

hook_entity_view_mode_alter(&$view_mode, Drupal\Core\Entity\EntityInterface $entity, $context) Change the view mode of an entity that is being displayed. Parameters string $view_mode: The view_mode that is to be used to display the entity. \Drupal\Core\Entity\EntityInterface $entity: The entity that is being viewed. array $context: Array with additional context information, currently only contains the langcode the entity is viewed in. Related topics Entity CRUD, editing, and view hooks Hoo

rdf_get_mapping

rdf_get_mapping($entity_type, $bundle) Returns the RDF mapping object associated with a bundle. The function reads the rdf_mapping object from the current configuration, or returns a ready-to-use empty one if no configuration entry exists yet for this bundle. This streamlines the manipulation of mapping objects by always returning a consistent object that reflects the current state of the configuration. Example usage: -Map the 'article' bundle to 'sioc:Post' and the 'title' field to 'dc:title'.