public function getAttributesFromString($value)
    {
        if (empty($value) === true) {
            return [];
        }

        $repository = $this->config->load($value, $this->type);

        return $repository->getArray();
    }
public function getAttributesFromString($value)
    {
        if (empty($value) === true) {
            return [];
        }

        $repository = $this->config->load($value, $this->type);

        return $repository->getArray();
    }
public function getAttributesFromString ( $ value ) { if ( empty ( $ value ) === true ) { return [ ] ; } $ repository = $ this -> config -> load ( $ value , $ this -> type ) ; return $ repository -> getArray ( ) ; }
Get the attributes of an item from string.

@param string $value Attributes represented as string. e.g: JSON or YAML

@return array
Get the attributes of an item from string .