src/fieldwork/Form.php
public function getField ($localSlug)
    {
        foreach ($this->getFields() as $field)
            /* @var $field Field */
            if ($field->getLocalSlug() == $localSlug)
                return $field;
        return null;
    }
public function getField ($localSlug)
    {
        foreach ($this->getFields() as $field)
            /* @var $field Field */
            if ($field->getLocalSlug() == $localSlug)
                return $field;
        return null;
    }
public function getField ( $ localSlug ) { foreach ( $ this -> getFields ( ) as $ field ) /* @var $field Field */ if ( $ field -> getLocalSlug ( ) == $ localSlug ) return $ field ; return null ; }
Finds a field by its localslug value

@param $localSlug

@return Field|null
Finds a field by its localslug value