MetadataGenerator

Generates in-place editing metadata for an entity field. Hierarchy class \Drupal\quickedit\MetadataGenerator implements MetadataGeneratorInterface File core/modules/quickedit/src/MetadataGenerator.php, line 14 Namespace Drupal\quickedit Members Name Modifiers Type Description MetadataGenerator::$accessChecker protected property An object that checks if a user has access to edit a given entity field. MetadataGenerator::$editorManager protected property The manager

MetadataBubblingUrlGenerator::__construct

public MetadataBubblingUrlGenerator::__construct(UrlGeneratorInterface $url_generator, RendererInterface $renderer) Constructs a new bubbling URL generator service. Parameters \Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The non-bubbling URL generator. \Drupal\Core\Render\RendererInterface $renderer: The renderer. File core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 45 Class MetadataBubblingUrlGenerator Decorator for the URL generator, which bubbles bubble

MetadataBubblingUrlGenerator::supports

public MetadataBubblingUrlGenerator::supports($name) Whether this generator supports the supplied $name. This check does not need to look if the specific instance can be resolved to a route, only whether the router can generate routes from objects of this class. Parameters mixed $name The route "name" which may also be an object or anything: Return value bool Overrides VersatileGeneratorInterface::supports File core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 115 Class M

MetadataBubblingUrlGenerator::setContext

public MetadataBubblingUrlGenerator::setContext(SymfonyRequestContext $context) File core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 53 Class MetadataBubblingUrlGenerator Decorator for the URL generator, which bubbles bubbleable URL metadata. Namespace Drupal\Core\Render Code public function setContext(SymfonyRequestContext $context) { $this->urlGenerator->setContext($context); }

MetadataBubblingUrlGenerator::getRouteDebugMessage

public MetadataBubblingUrlGenerator::getRouteDebugMessage($name, array $parameters = array()) Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages. Parameters mixed $name: array $parameters which should contain a content field containing: a RouteReferrersReadInterface object Return value string Overrides VersatileGeneratorInterface::getRouteDebugMessage File core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 122

MetadataBubblingUrlGenerator::getPathFromRoute

public MetadataBubblingUrlGenerator::getPathFromRoute($name, $parameters = array()) Gets the internal path (system path) for a route. Parameters string|\Symfony\Component\Routing\Route $name: The route name or a route object. array $parameters: An array of parameters as passed to \Symfony\Component\Routing\Generator\UrlGeneratorInterface::generate(). Return value string The internal Drupal path corresponding to the route. Overrides UrlGeneratorInterface::getPathFromRoute File core/lib/Drupal/

MetadataBubblingUrlGenerator::getContext

public MetadataBubblingUrlGenerator::getContext() File core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 60 Class MetadataBubblingUrlGenerator Decorator for the URL generator, which bubbles bubbleable URL metadata. Namespace Drupal\Core\Render Code public function getContext() { return $this->urlGenerator->getContext(); }

MetadataBubblingUrlGenerator::generateFromRoute

public MetadataBubblingUrlGenerator::generateFromRoute($name, $parameters = array(), $options = array(), $collect_bubbleable_metadata = FALSE) Generates a URL or path for a specific route based on the given parameters. Parameters that reference placeholders in the route pattern will be substituted for them in the pattern. Extra params are added as query strings to the URL. @internal Should not be used in user code. Use \Drupal\Core\Url instead. Parameters string|\Symfony\Component\Routing\Rout

MetadataBubblingUrlGenerator::generate

public MetadataBubblingUrlGenerator::generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH) File core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 94 Class MetadataBubblingUrlGenerator Decorator for the URL generator, which bubbles bubbleable URL metadata. Namespace Drupal\Core\Render Code public function generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH) { $options['absolute'] = is_bool($referenceType) ? $referenceType

MetadataBubblingUrlGenerator::bubble

protected MetadataBubblingUrlGenerator::bubble(GeneratedUrl $generated_url, array $options = []) Bubbles the bubbleable metadata to the current render context. Parameters \Drupal\Core\GeneratedUrl $generated_url: The generated URL whose bubbleable metadata to bubble. array $options: (optional) The URL options. Defaults to none. File core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 79 Class MetadataBubblingUrlGenerator Decorator for the URL generator, which bubbles bubble