Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
34
vendor/drupal/console/templates/module/entity-content-page.php.twig
vendored
Normal file
34
vendor/drupal/console/templates/module/entity-content-page.php.twig
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
{% extends "base/file.php.twig" %}
|
||||
|
||||
{% block file_path %}
|
||||
{{ entity_name }}.page.inc{% endblock %}
|
||||
{% block extra_info %}
|
||||
*
|
||||
* Page callback for {{ label }} entities.
|
||||
{% endblock %}
|
||||
|
||||
{% block use_class %}
|
||||
use Drupal\Core\Render\Element;
|
||||
{% endblock %}
|
||||
|
||||
{% block file_methods %}
|
||||
/**
|
||||
* Prepares variables for {{ label }} templates.
|
||||
*
|
||||
* Default template: {{ entity_name }}.html.twig.
|
||||
*
|
||||
* @param array $variables
|
||||
* An associative array containing:
|
||||
* - elements: An associative array containing the user information and any
|
||||
* - attributes: HTML attributes for the containing element.
|
||||
*/
|
||||
function template_preprocess_{{ entity_name | machine_name }}(array &$variables) {
|
||||
// Fetch {{ entity_class }} Entity Object.
|
||||
${{ entity_name | machine_name }} = $variables['elements']['#{{ entity_name }}'];
|
||||
|
||||
// Helpful $content variable for templates.
|
||||
foreach (Element::children($variables['elements']) as $key) {
|
||||
$variables['content'][$key] = $variables['elements'][$key];
|
||||
}
|
||||
}
|
||||
{% endblock %}
|
Reference in a new issue