Skip to content

Commit

Permalink
Fix incompatibility issues with [Inventory](https://github.com/double…
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed May 24, 2021
1 parent 206f54d commit d61f940
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/models/BlockType.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,31 @@ class BlockType extends Model
// Public Methods
// =========================================================================

public static function displayName(): string
{
return Craft::t('vizy', 'Vizy Block');
}

public static function lowerDisplayName(): string
{
return StringHelper::toLowerCase(static::displayName());
}

public static function pluralDisplayName(): string
{
return Craft::t('vizy', 'Vizy Blocks');
}

public static function pluralLowerDisplayName(): string
{
return StringHelper::toLowerCase(static::pluralDisplayName());
}

public static function refHandle()
{
return null;
}

protected function defineRules(): array
{
$rules = parent::defineRules();
Expand Down

0 comments on commit d61f940

Please sign in to comment.