backdrop-dev / tools
Backdrop Tools is a collection of helper classes and functions for developing themes and plugins.
v1.0.1
2026-11-23 17:22 UTC
Requires
- php: >=7.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-23 17:30:18 UTC
README
Backdrop Tools is a collection of helper classes and functions for developing plugins and themes.
Requirements
Collection
Backdrop\Tools\Collection is an ArrayObject with helper methods. Items can also be read and written as properties.
$collection = new Backdrop\Tools\Collection( [ 'one' => 1 ] ); $collection->add( 'two', 2 ); $collection->three = 3; $collection->get( 'two' ); // 2 $collection->has( 'three' ); // true $collection->get( 'missing' ); // null $collection->remove( 'one' ); $collection->all(); // [ 'two' => 2, 'three' => 3 ]
Copyright and License
This project is license under GNU GPL, version 2 or higher
2019-2026. Benjamin Lu