Bolt\Storage\Field\Collection\FieldCollection::get PHP Метод

get() публичный Метод

Helper method to get the value for a specific field this is compatible with content.get(contentkey) calls from twig.
public get ( $key ) : mixed
$key
Результат mixed
    public function get($key)
    {
        $this->initialize();
        foreach ($this->collection as $field) {
            if ($field->getFieldname() == $key) {
                return $field->getValue();
            }
        }
    }