getFieldByName('contact_id')->setRequired(TRUE); $spec->getFieldByName('location_type_id')->setRequired(TRUE); } /** * @param string $entity * @param string $action * * @return bool */ public function applies($entity, $action) { return $entity === 'Address' && $action === 'create'; } }