public function getValues()
    {
        $contentType = $this->getContenttype();
        if (!isset($contentType['fields'])) {
            return [];
        }

        $allValues = $this->toArray();

        return array_intersect_key($allValues, ($contentType['fields']));
    }
public function getValues()
    {
        $contentType = $this->getContenttype();
        if (!isset($contentType['fields'])) {
            return [];
        }

        $allValues = $this->toArray();

        return array_intersect_key($allValues, ($contentType['fields']));
    }
public function getValues ( ) { $ contentType = $ this -> getContenttype ( ) ; if ( ! isset ( $ contentType [ 'fields' ] ) ) { return [ ] ; } $ allValues = $ this -> toArray ( ) ; return array_intersect_key ( $ allValues , ( $ contentType [ 'fields' ] ) ) ; }
Helper to return an array of user-defined values from the Entity.
This excludes meta fields set by Bolt.
Helper to return an array of user - defined values from the Entity . This excludes meta fields set by Bolt .