Elgg\Database\Annotations::enableAll PHP Method

enableAll() public method

Enables annotations based on $options.
public enableAll ( array $options ) : boolean | null
$options array An options array. {@link elgg_get_annotations()}
return boolean | null true on success, false on failure, null if no metadata enabled.
    function enableAll(array $options)
    {
        if (!$options || !is_array($options)) {
            return false;
        }
        $options['metastring_type'] = 'annotations';
        return _elgg_batch_metastring_based_objects($options, 'elgg_batch_enable_callback');
    }