UnwrappedContainer.php in Open Social 8.6
Same filename and directory in other branches
- 8.9 modules/social_features/social_user/src/Element/UnwrappedContainer.php
- 8.4 modules/social_features/social_user/src/Element/UnwrappedContainer.php
- 8.5 modules/social_features/social_user/src/Element/UnwrappedContainer.php
- 8.7 modules/social_features/social_user/src/Element/UnwrappedContainer.php
- 8.8 modules/social_features/social_user/src/Element/UnwrappedContainer.php
- 10.3.x modules/social_features/social_user/src/Element/UnwrappedContainer.php
- 10.0.x modules/social_features/social_user/src/Element/UnwrappedContainer.php
- 10.1.x modules/social_features/social_user/src/Element/UnwrappedContainer.php
- 10.2.x modules/social_features/social_user/src/Element/UnwrappedContainer.php
Namespace
Drupal\social_user\ElementFile
modules/social_features/social_user/src/Element/UnwrappedContainer.phpView source
<?php
namespace Drupal\social_user\Element;
use Drupal\Core\Render\Element\Container;
/**
* Provides a container element without a div wrapper.
*
* Example:
* @code
* $build['container'] = [
* '#type' => 'unwrapped_container',
* 'first_child' => [
* '#markup' => 'Hello',
* ],
* 'second_child' => [
* '#markup' => 'World',
* ],
* ];
* @endcode
*
* @see plugin_api
*
* @RenderElement("unwrapped_container")
*/
class UnwrappedContainer extends Container {
/**
* {@inheritdoc}
*/
public function getInfo() {
$info = parent::getInfo();
$info['#theme_wrappers'] = [
'unwrapped_container',
];
return $info;
}
}
Classes
Name | Description |
---|---|
UnwrappedContainer | Provides a container element without a div wrapper. |