30 parent::__construct(
$url);
31 $this->components = $this->
toArray($content);
32 $types =
array( Component::class );
44 $clone->components = $this->
toArray($content);
45 $types =
array( Component::class );
71 if (count($array) === 0) {
72 throw new \LogicException(
"At least one component from the UI framework is required, otherwise 73 the wrapper dropzone is not visible.");
trait ComponentHelper
Provides common functionality for component implementations.
checkArgListElements($which, array &$values, &$classes)
Check every element of the list if it is an instance of one of the given classes. ...
checkEmptyArray(array $array)
Checks if the passed array contains at least one element, throws a LogicException otherwise...
Create styles array
The data for the language used.
withContent($content)
Get a wrapper dropzone like this, wrapping around the given component(s).$content$this ...
__construct($url, $content)
toArray($value)
Wrap the given value in an array if it is no array.