nelson-ph/container_tag

Extends core container, so that we can pass the tag that will be used as container.

Installs: 2 196

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:drupal-module

2.0.1 2024-02-09 14:19 UTC

This package is auto-updated.

Last update: 2024-04-09 14:37:53 UTC


README

Extends core container, so that we can pass the tag that will be used as container.

Install

  • Require it with composer: composer require nelson-ph/container_tag
  • Install the module as any other module.

Usage

Programmatically:

$element=[
  '#type'=>'container_tag',
  '#tag'=>'strong',
  'container_values'=>[
    'markup'=>[
      '#markup'=>'simple markup',
    ],
  ],
];

License

This project is licensed under the MIT License - see the LICENSE.md file for details