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.");
An exception for terminatinating execution or to throw for unit testing.
checkEmptyArray(array $array)
Checks if the passed array contains at least one element, throws a LogicException otherwise.
__construct($url, $content)
withContent($content)
Get a wrapper dropzone like this, wrapping around the given component(s).$this
A component is the most general form of an entity in the UI.
toArray($value)
Wrap the given value in an array if it is no array.
checkArgListElements($which, array &$values, &$classes)
Check every element of the list if it is an instance of one of the given classes.
trait ComponentHelper
Provides common functionality for component implementations.