Activity::get_random_type_from_component( string $component )

Get a random type from a component.


Parameters Parameters

$component

(string) (Required) Component name.


Top ↑

Return Return

(string)


Source Source

File: cli/src/activity.php

	protected function get_random_type_from_component( $component ) {
		$ca = $this->get_components_and_actions();
		return array_rand( array_flip( $ca[ $component ] ) );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.