ExtensionCategory : int

Internal

Table of Contents

Cases

Backend
Distribution  = 10
Documentation  = 8
Example  = 9
Frontend  = 2
Miscellaneous  = 4
Module  = 1
Plugin  = 3
Services  = 5
Templates  = 6

Methods

fromValue()  : self
This method returns the enum for the value either based on the value or the name and returning the ExtensionCategory::Miscellaneous as default for invalid values. Note that this means that nor error or exception is thrown.
getStringValue()  : string

Cases

Methods

fromValue()

This method returns the enum for the value either based on the value or the name and returning the ExtensionCategory::Miscellaneous as default for invalid values. Note that this means that nor error or exception is thrown.

public static fromValue(int|string $value) : self
Parameters
$value : int|string
Tags
todo

Either the int or string based value determination should be dropped and streamlined towards one value type and the default tryFrom method used in calling places doing the fallback there directly.

Return values
self

getStringValue()

public getStringValue() : string
Return values
string

        
On this page

Search results