interface ViewportResolverInterface in Viewport 8
Defines an interface for viewport tag resolvers.
Hierarchy
- interface \Drupal\viewport\ViewportResolverInterface
Expanded class hierarchy of ViewportResolverInterface
All classes that implement ViewportResolverInterface
File
- src/
ViewportResolverInterface.php, line 8
Namespace
Drupal\viewportView source
interface ViewportResolverInterface {
/**
* Checks if the given path (or current path) needs a custom viewport tag.
*
* @return bool
* Whether the given path needs to use a custom viewport or not.
*/
public function isPathSelected($path = NULL);
/**
* Generates and returns an html_head tag array for use as page #attachment.
*
* @return array
* Array specifying the html_head '#tag' and '#attributes' properties.
*/
public function generateViewportTagArray();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ViewportResolverInterface:: |
public | function | Generates and returns an html_head tag array for use as page #attachment. | 1 |
ViewportResolverInterface:: |
public | function | Checks if the given path (or current path) needs a custom viewport tag. | 1 |