getFieldByName('used_for')->setDefaultValue('civicrm_contact'); } /** * @param string $entity * @param string $action * * @return bool */ public function applies($entity, $action) { return $entity === 'Tag' && $action === 'create'; } }